package com.wangzefeng.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wangzefeng.shop.entity.SysMenu;
import com.wangzefeng.shop.pojo.MenuVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 权限表,相当于菜单表 Mapper 接口
 * </p>
 *
 * @author wangzefeng
 * @since 2021-03-15
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenu> getMenuListByRoleId(@Param("roleId") int roleId);

    List<MenuVo> getMenuTreeByRoleId(@Param("roleId") int roleId);
}
